package com.yonyou.cyxdms.sysAuth.service.dto;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;


/**
 * <p>
 * 页面权限配置
 * </p>
 *
 * @author quankk
 * @since 2019-07-05
 */

public class PageDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 页面ID
     */
        private Integer pageId;
            private String dealerCode;
        /**
     * 页面唯一标识（用户页面验证）
     */
        private String pageKey;
        /**
     * 页面名称
     */
        private String pageName;
        /**
     * 页面描述
     */
        private String pageDesc;
        /**
     * 是，否启用权限控制
     */
        private Integer permissionCtl;
        /**
     * 是否启用
     */
        private Integer isEnable;
        /**
     * 开发人员
     */
        private String owner;
            private Boolean isDeleted;
    
    public PageDTO() {
        super();
    }




    public Integer getPageId() {
        return pageId;
    }


    public void setPageId(Integer pageId) {
        this.pageId = pageId;
    }



    public String getDealerCode() {
        return dealerCode;
    }


    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }



    public String getPageKey() {
        return pageKey;
    }


    public void setPageKey(String pageKey) {
        this.pageKey = pageKey;
    }



    public String getPageName() {
        return pageName;
    }


    public void setPageName(String pageName) {
        this.pageName = pageName;
    }



    public String getPageDesc() {
        return pageDesc;
    }


    public void setPageDesc(String pageDesc) {
        this.pageDesc = pageDesc;
    }



    public Integer getPermissionCtl() {
        return permissionCtl;
    }


    public void setPermissionCtl(Integer permissionCtl) {
        this.permissionCtl = permissionCtl;
    }



    public Integer getIsEnable() {
        return isEnable;
    }


    public void setIsEnable(Integer isEnable) {
        this.isEnable = isEnable;
    }



    public String getOwner() {
        return owner;
    }


    public void setOwner(String owner) {
        this.owner = owner;
    }



    public Boolean getDeleted() {
        return isDeleted;
    }


    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }



    @Override
    public String toString() {
        return "PageDTO{" +
        "pageId=" + pageId +
        ", dealerCode=" + dealerCode +
        ", pageKey=" + pageKey +
        ", pageName=" + pageName +
        ", pageDesc=" + pageDesc +
        ", permissionCtl=" + permissionCtl +
        ", isEnable=" + isEnable +
        ", owner=" + owner +
        ", isDeleted=" + isDeleted +
        "}";
    }
    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author quankk
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author quankk
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "pageId");
    }

}
